bitkeeper revision 1.1159.14.3 (4118cbcbViBc-_SwC7TL33vEzHCY7Q)
authormjw@wray-m-3.hpl.hp.com <mjw@wray-m-3.hpl.hp.com>
Tue, 10 Aug 2004 13:21:15 +0000 (13:21 +0000)
committermjw@wray-m-3.hpl.hp.com <mjw@wray-m-3.hpl.hp.com>
Tue, 10 Aug 2004 13:21:15 +0000 (13:21 +0000)
Don't build the domain when restoring.

tools/python/xen/xend/XendDomainInfo.py

index cda3de9b30a4d7f739715ec64e5cffd675e8345d..056a171fc27099c364349de552499f38b375bd7d 100644 (file)
@@ -718,7 +718,7 @@ class XendDomainInfo:
     def build_domain(self, ostype, kernel, ramdisk, cmdline, vifs_n):
         """Build the domain boot image.
         """
-        if self.recreate: return
+        if self.recreate or self.restore: return
         if len(cmdline) >= 256:
             log.warning('kernel cmdline too long, domain %d', self.dom)
         dom = self.dom